Skip to content

Add redirect stubs for moved/removed pages#8194

Closed
dereuromark wants to merge 1 commit into5.xfrom
fix/add-redirects-for-moved-pages
Closed

Add redirect stubs for moved/removed pages#8194
dereuromark wants to merge 1 commit into5.xfrom
fix/add-redirects-for-moved-pages

Conversation

@dereuromark
Copy link
Copy Markdown
Member

Summary

  • Add redirect stub pages for old URLs that currently return 404
  • Uses <meta http-equiv="refresh"> for instant client-side redirect with fallback links

Redirects

Old URL Redirects To
console-and-shells.html console-commands/
controllers/components/cookie.html controllers/request-response.html#setting-cookies

Context

These old URLs are still referenced from external sources (blog posts, Stack Overflow answers, cached IDE docs). The CakePHP source code @link annotations have already been updated in cakephp/cakephp#19221 to point to the correct pages directly.

- console-and-shells.html → console-commands/
- controllers/components/cookie.html → controllers/request-response.html#setting-cookies

These old URLs return 404 and are still referenced from external
sources. Uses meta refresh for instant client-side redirect with
a fallback link for non-JS environments.
@dereuromark dereuromark requested a review from josbeir January 29, 2026 05:02
@josbeir
Copy link
Copy Markdown
Contributor

josbeir commented Jan 29, 2026

I'm not sure about this one, wouldn't a proper permanent redirect in site site-book config be a fit better here?

@dereuromark dereuromark marked this pull request as draft January 29, 2026 07:20
@josbeir
Copy link
Copy Markdown
Contributor

josbeir commented Jan 29, 2026

Added your redirects here https://github.com/cakephp/site-book/blob/master/nginx.conf.sigil#L88-L105

In the examples above these will redirect from 4.x and up to current version

@josbeir josbeir closed this Jan 29, 2026
@dereuromark dereuromark deleted the fix/add-redirects-for-moved-pages branch January 29, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants